<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Language" content="zh-CN" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>购物车 - VANCL 凡客诚品</title>
        <link rel="shortcut icon" type="image/x-icon" href="http://i.vanclimg.com/common/favicon/favicon.ico" type="image/x-icon" />
        <link rel="Stylesheet" type="text/css" charset="utf-8" href="/homes/carts/Css/css.css" />
 		<script src="/homes/goods/Scripts/require-jquery-1.8.3.js"></script>

        <script type="text/javascript" charset="utf-8" src="/homes/carts/Scripts/js.js"></script>
        <!--[if IE 6]>
        <script type="text/javascript">document.execCommand("BackgroundImageCache", false, true);</script>
        <![endif]-->
        <script type="text/javascript">
            var staticResourcePath = { "img": "http://i.vanclimg.com/", "sslimg": "https://ssl.vanclimg.com/" };
            var staticSitePath ={"isOpened":"false","checkOut":"https://shopping.vancl.com/checkout"};
        </script>
        
    <link rel="stylesheet" type="text/css" charset="utf-8" href="/homes/carts/Css/css.css" />

    </head>
    <body class="mycart">
        <div class="shade"></div>
        <div id="wrapper">
            <div id="header" class="clearfix">
                    <a class="logo" href="http://www.vancl.com/" title="凡客诚品" target="_blank">
                        <img alt="凡客诚品"  src ="/homes/carts/Picture/vancl-logo.png" />
                    </a>
                    <div class="help-center">
                        <a href="http://help.vancl.com/" target="_blank">帮助中心</a>
                    </div>
                    <div class="account">
                            <p>您好，欢迎光临凡客诚品。<a class="login" href="/home/login">登录</a>|<a class="reg" href="/home/register">注册</a></p>

                    </div>
            </div>
            <div id="location">
            
               
    <em>1.我的购物车</em> <span>2.填写核对信息单</span> <span>3.成功提交订单</span>

            </div>
            <div id="content">
                



    <div id="cart-gift">
        
               


    <div class="cart-top">
        <!-- 2015.07.31 shopping改版 -->
        
        <h2>
                我的购物车</h2>
    </div>
    <div class="tip">
        <span>温馨提示：</span>1.选购清单中的商品无法保留库存，请您及时结算。2.商品的价格和库存将以订单提交时为准。3.促销活动满减优惠将均摊至商品小计中。
    </div>
<div id="cart">
</div>
    <div id="cart-product" class="clearfix" data-jobs-alert="False" data-promotion="False">
        <div id="batchdelcart">
            <table cellspacing="0">
		                <thead>
		                    <tr>
		                        <th class="title-white bd-left">
		                            &nbsp;
		                        </th>
		                        <th class="bar-title ">
		                            <input id="all-ckb-top quan" class="track all-products-ckb ckb" name="all-products" value="all-products" data-del-tip="" type="checkbox"><label for="all-ckb-top">全选</label>
		                        </th>
		                        <th class="image">
		                            &nbsp;
		                        </th>
		                        <th class="name">
		                            商品名称
		                        </th>
		                        <th class="presentpoints" style="display:none">
		                            积分
		                        </th>
		                        <th class="price">
		                            单价
		                        </th>
		                        <th class="qty">
		                            数量
		                        </th>
		                        <th class="discount">
		                            优惠
		                        </th>
		                        <th class="subtotal">
		                            小计
		                        </th>
		                        <th class="operate ">
		                            操作
		                        </th>
		                        <th class="title-white bd-right">
		                            &nbsp;
		                        </th>
		                    </tr>
		                </thead>
		                    <tbody class="vancl-title" style="display:none">
		                        <tr>
		                            <td class="white bd-left">
		                                &nbsp;
		                            </td>
		                            <td colspan="8" class="vancl-title-bottom">
		                                <p class="vancl-title-left">
		                                    <input id="vancl-ckb-top" name="vancl-products" value="shippers" type="checkbox">
		                                    以下商品由凡客诚品负责配送
		                                </p>
		                                <div class="vancl-title-right pos-r">
		                                    <p>
		                                            您目前可享受全场购物免运费
		                                    </p>
		                                </div>
		                            </td>
		                            <td class="white bd-right">
		                                &nbsp;
		                            </td>
		                        </tr>
		                    </tbody>
		                    <tbody style="display:none">
		                        <tr>
		                            <td class="white bd-left">
		                                &nbsp;
		                            </td>
		                            <td colspan="9">
		                                <p class="shop-name-left">
		                                    <input id="vancl-ckb-shop-10258" name="products-shop" value="products-shop" shopid="10258" issupplier="False" type="checkbox">
		                                    店铺：
		                                        <a href="http://mall.vancl.com/10258/" target="_blank">VANCL 凡客诚品旗舰店</a>
		                                </p>
		                            </td>
		                            <td class="white bd-right">
		                                &nbsp;
		                            </td>
		                        </tr>
		                    </tbody>
		                    <tbody id="vancl-general-product" name="vancl-general-product">
		                      </tbody>
		                      <tbody id="supplier-general-product_tb" name="supplier-general-product_tb">   
						    <tr>
						        <td class="white bd-left bd-bottom">
						            &nbsp;
						        </td>
						        <td class="bar bd-bottom" rowspan="1" colspan="5">
						        </td>
						        <td class="bd-bottom">
						        </td>
						        <td class="subtotal bd-bottom">
						        </td>
						        <td class="operate bd-bottom">
						        </td>
						        <td class="white bd-right bd-bottom">
						        </td>
						    </tr>
						
						<form action="/order/create" method="post">
						    @foreach($goods as $k=>$v)
						    <tr class="selected">
						        <td class="white bd-left">
						            &nbsp;
						        </td>

       						
						        <td class="bar" rowspan="1">
						            <input class="track ckb" name="goods[{{$k}}][id]" data-del-tip="" value="{{$v->id}}" checked="checked" issupplier="False" shopid="10258" selectedclothescode="15771416" type="checkbox">
						        </td>
						        <td class="image" rowspan="1">
						            <a target="_blank" href="{{$v->id}}.html">
						                <img alt="{{$v->title}}" src="{{$v->image()->first()->src}}"></a>
						        </td>
						        <td class="name" style='width:200px;padding-left:30px'>
						            <a target="_blank" href="{{$v->id}}.html">{{$v->title}}
						                 </a>
						            <div style="float: right;width:36%">
						            </div>
						        </td>
						        <td class="presentpoints" style="display: none">
						            {{$v->jifen}}
						        </td>
						        <td class="price" style='padding-left:30px'>
						            ￥{{$v->price}}
						        </td>
						        <td class="qty" style='padding-left:30px'>
						            <a class="track decrease-disable" name="sp_cart_mycart_decrease">减少</a>
						                <input name="goods[{{$k}}][num]" class="modify-product-qty" value="{{$v->pivot->number}}" maxlength="3" type="text">
						                <noscript>
						                    <input type="submit" class="nojs-btn" value="修改" /></noscript>
						                <a class="increase track" href="/mycart/updateqty?sku=15771416&amp;qty=2" name="sp_cart_mycart_increase">增加</a>
						        </td>
						        <td>
						                -
						        </td>
						        <td class="subtotal">
						            ￥{{$v->pivot->number * $v->price}}
						        </td>
						        <td class="operate">
						            <a class="del track" name="sp_cart_mycart_del" href="/cart/{{$v->id}}">
						                                 删除</a>
						        </td>
						        <td class="white bd-right">
						            &nbsp;
						        </td>
						    </tr>
						    @endforeach
						</tbody>
							<tbody id="vancl-point-product" name="vancl-point-product">
		                        
		                    </tbody>
		                    <tbody id="vancl-present-product" name="vancl-present-product">
		                        
		                    </tbody>
		              <tbody>
		              	<tr>
		                    <td class="white bd-left table-bottom table-bottom-td">
		                        &nbsp;
		                    </td>
		                    <td colspan="8" class="table-bottom table-bottom-td">
		                        &nbsp;
		                    </td>
		                    <td class="white bd-right table-bottom table-bottom-td">
		                        &nbsp;
		                    </td>
		                </tr>
		            </tbody>

		            <tbody>
		              	<tr>
		                    <td class="white bd-left table-bottom table-bottom-td" colspan="10" style="border:1px solid #dcdfe4">
		                      <div class="btn-panel" style="padding-top:10px">

			                     <a href="/" class="go-buy track" name="sp_cart_mycar_goBuy">
			                    &lt;&lt;继续购物</a>

			                    <button class="checkout track" href="/checkout?previousUserId=-1" id="goPay" name="sp_cart_mycar_goPay">
			                        去结算&gt;&gt;</button>
			                     {{csrf_field()}}
			                </div> 
			               	 
		                    </td>
		                </tr>

	     			</form>
		            </tbody>
		     </table>
            <div class="bar-empty clearfix">
            </div>
    </div>
 </div>

            
    </div>
    <div id="cart-collocate">
        <div  class="coudan-title">
            <h2><strong>免运费凑单商品</strong>（您再买<span id="coudan-differ"></span>凡客发货商品，即可享免运费优惠）</h2>
            <a href="javascript:;" class="close"><img src="/homes/carts/Picture/dpbox_06.gif"></a>
        </div>
        <div id="collocate-list" class="product-list-panel  coudan-content  clearfix clearfixCD">
        </div>
    </div>

<div id="remove-product" >
    <table cellspacing="0">
        <thead>
            <tr>
                <th scope="col" colspan="6">
                    您删除的商品，您可以 <span>重新购买</span> 或 <span>放入收藏夹</span>。
                </th>
            </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>

<div id="gift" data-present-url="/mycart/presents">
    
</div>
<div id="recom-browse-collect" class="cuxiao" style="display:none">
    <ul class="tab">
        <li class="selected"><a href="/mycart/recent" class="track" name="sp_cart_recent">最近浏览商品</a></li>
        <li><a href="/mycart/recommended" class="track" name="sp_cart_recommended">推荐商品</a></li>        
        <li><a href="/mycart/favorites" class="track" name="sp_cart_favorites">收藏夹</a></li>
    </ul>
    <div id="recent-browse" class="product-list-panel clearfix">
    </div>
    <div id="tj-product" class="product-list-panel clearfix">
    </div>    
    <div id="favorite" class="product-list-panel clearfix">
    </div>
</div>

<img src="/homes/carts/Picture/ocx.ashx" style="display:none" />
<script type="text/javascript">
	// 全选
	    <script>

        $(function(){
            //绑定事件 
            $('#quan').click(function(){
                //获取当前这个元素的选中状态
                var status = this.checked;
                if(status) {
                    $('input[name="goods[{{$k}}][nu]"]').each(function(){
                        this.checked = true;
                    })
                } else {
                    $('input[name="goods[{{$k}}][num]"]').each(function(){
                        this.checked = false;
                    })
                } 
            });


        });

    $(document).ready(function () {
        var url = document.location;
        var Arr_Crieo = "......,s.vancl.com,www.vancl.com,item.vancl.com,shopping.vancl.com,buy.vancl.com";
        if (Arr_Crieo.indexOf(url.host) > -1) {
            var script = document.createElement("script");
            script.setAttribute("type", "text/javascript");
            script.setAttribute("src", "http://static.criteo.net/js/ld/ld.js");
            var heads = document.getElementsByTagName("head");
            if (heads.length) {
                heads[0].appendChild(script);
            }
            else {
                document.documentElement.appendChild(script);
            }
        }
        setTimeout(function () {
            criteopust();
        }, '3000');
    });



    function criteopust() {
        var url = document.location;
        var Arr_Crieo = "......,www.vancl.com,item.vancl.com,shopping.vancl.com,buy.vancl.com";
        window.criteo_q = window.criteo_q || [];
        var _U = "";
        $.getJSON("http://weixinshop.vancl.com/sess/GetUserFromCookies?callback=?",
    function (data) {
        _U = data.json;
        if (_U == "D41D8CD98F00B204E9800998ECF8427E") {
            _U = "";
        }
        switch (url.host) {
            case "www.vancl.com":
                console.log("crite www.vancl.com");
                window.criteo_q.push(
			{ event: "setAccount", account: 24712 },
			{ event: "setHashedEmail", email: _U },
			{ event: "setSiteType", type: "d" },
			{ event: "viewHome" }
				);
                break;
            case "s.vancl.com":
                console.log("crite s.vancl.com");
                var _sitem = [];
                $(".pic").each(function () {
                    _sitem.push($(this).attr("pop"));
                });

                window.criteo_q.push(
					{ event: "setAccount", account: 24712 },
					{ event: "setHashedEmail", email: _U },
					{ event: "setSiteType", type: "d" },
					{ event: "viewList", item: _sitem }
			);

                break;
            case "item.vancl.com":
                console.log("crite item.vancl.com");
                var _productcode = $("#productcode").html().split("：")[1];
                window.criteo_q.push(
					{ event: "setAccount", account: 24712 },
					{ event: "setHashedEmail", email: _U },
					{ event: "setSiteType", type: "d" },
					{ event: "viewItem", item: _productcode }
			);
                break;
            case "shopping.vancl.com":
                console.log("crite shopping.vancl.com");
                if (url.href.indexOf("mycart") > -1) {
                    var _shopitem = [];
                    $("td.qty").each(function () {
                        var _json = { "id": $(this).find("input[name=product-code]").val(), price: 0, quantity: $(this).find("input[name=product-qty]").val() };
                        _shopitem.push(_json);
                    });
                    window.criteo_q.push(
						{ event: "setAccount", account: 24712 },
						{ event: "setHashedEmail", email: _U },
						{ event: "setSiteType", type: "d" },
						{ event: "viewBasket", item: _shopitem });
                }
                break;
            case "buy.vancl.com":
                console.log("crite buy.vancl.com");
                if (url.href.indexOf("success") > -1) {
                    var _shopitem = [];
                    var _formcode = $("#formcode").val();
                    var _products = $(".order").attr("data-product-codes");
                    var _json = { "id": _products, price: 0, quantity: 0 };
                    _shopitem.push(_json);
                    window.criteo_q.push(
				{ event: "setAccount", account: 24712 },
				{ event: "setHashedEmail", email: _U },
				{ event: "setSiteType", type: "d" },
				{ event: "trackTransaction", id: _formcode, item: _shopitem });
                }
                break;
        }
    });
    }
 
</script>


            </div>
            <div id="footer">
                    <p class="copyrights">Copyright 2007 - 2017 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11010102000579号 出版物经营许可证新出发京批字第直110138号</p>
                    <p class="certs">
                        <a class="ectrustprc" title="中国电子商务诚信单位" href="http://www.ectrustprc.org.cn/seal/splash/1000020.htm" target="_blank">
                            <img alt="中国电子商务诚信单位" src="/homes/carts/Picture/cert-redlogo.gif" />
                        </a>
                        <span class="costumeorg" title="中国服装协会会员单位">
                            <img alt="中国服装协会会员单位" src="/homes/carts/Picture/cert-costumeorg.gif" />
                        </span>
                        <a class="online315" href="http://www.315online.com.cn/member/315090053.html" title="网上交易保障中心" target="_blank">
                            <img alt="网上交易保障中心" src="/homes/carts/Picture/cert-wsjybzzx.gif" />
                        </a>
                    </p>
            </div>
        </div>       
        
    <script type="text/javascript" src="/homes/carts/Scripts/js.js"></script>
    <script type="text/javascript" src="/homes/carts/Scripts/js.js"></script>
    <script type="text/javascript" src="/homes/carts/Scripts/js.js"></script>
    <script type="text/javascript">
        var google_conversion_id = 1045274787;
        var google_conversion_language = "en";
        var google_conversion_format = "3";
        var google_conversion_color = "666666";
        var google_conversion_label = "VFEPCI3L4QEQo8G28gM";
        var google_conversion_value = 0;
    </script>
    <script type="text/javascript" src="homes/carts/Scripts/js.js"></script>
    <noscript>
        <div style="display: inline;"><img height="1" width="1" style="border-style: none;" alt="" src="/homes/carts/Picture/d09d9b5426cb474588db41f15cf2b92f.gif" /></div>
    </noscript>
    <iframe style="display:none" src="../../MediaV.htm"></iframe>
    <iframe id="vizury" style="display:none" src="http://page.vanclimg.com/mediav/vizuryiframe.htm"></iframe>
    <iframe id="MediaV" style="display:none" src=""></iframe> 
    <iframe style="display: none" src="http://page.vanclimg.com/dsp/iframe.html?from=shopping&pagetype=shopping"></iframe>

        <script type="text/javascript" src="/homes/carts/Scripts/js.js"></script>
	
    </body>
</html>
